
#ifndef __PACKETSTRUCT_CG_H__
#define __PACKETSTRUCT_CG_H__

#pragma once

#include "Struct.h"
#include "PacketStruct.h"
#include "Protocol_Cp.h"
#include "WzDataType.h"
#include "Define.h"

#pragma pack(push,1)

#define PACKET_CG_OPEN( c, p )	struct MSG_##p : public MSG_BASE { MSG_##p(){ m_byCategory = c; m_byProtocol = p; }
#define PACKET_CG_CLOSE		};
#define PACKET_CG_FWD_OPEN( c, p )	struct MSG_##p : public MSG_BASE_FORWARD { MSG_##p(){ m_byCategory = c; m_byProtocol = p; }
#define PACKET_CG_FWD_CLOSE		};


#define PACKET_CG_REPACK_OPEN( c, p )	struct MSG_##p : public MSG_BASE_EX { MSG_##p(){ m_byCategory = CG_REPACK;m_byCategory2 = c; m_byProtocol = CG_REPACK_TYPE_A;m_byProtocol2 = p; }
#define PACKET_CG_REPACK_CLOSE		};

struct MsgTest:public MSG_BASE_FORWARD
{
  BYTE buff[1024];
};


#pragma pack(pop)

#endif // __PACKETSTRUCT_CG_H__

















